package com.wtf.dsp.admin.util;

import cn.hutool.core.util.IdUtil;
import org.slf4j.MDC;

/**
 * ClassName: MdcUtil
 * Description:
 * date: 2024/9/11 17:52
 *
 * @author linhuanyou
 * @version 1.0
 */
public class MdcUtil {

    public final static String MID = "mid";

    public static void putLogMid(){
        MDC.put(MID, IdUtil.fastSimpleUUID());
    }

    public static String getLogMid(){
        return MDC.get(MID);
    }

    public static void removeLogMid(){
        MDC.remove(MID);
    }
}
